<?php
//print_r($person_list_array);
?>
<div class="box">
    <div class="hd">团队成员管理 &darr;</div>
    <div class="bd"> 
        <!-- <div class="ctrl"><a href="#" title="添加导航">添加导航</a></div> -->
        <table class="itbale">
            <tr class="t">
                <td width="30">序号</td>
                <td>照片</td>
                <td width="60">姓名</td>
                <td>性别</td>
                <td>职位</td>
                <td width="50%">简介</td>
                <td>操作</td>
            </tr>
            <?php
                    $base_url=base_url();
              $thum_url= $base_url."/uploads/teamphoto/thum";
            foreach ($person_list_array as $key => $val) {
        
                $del_url = site_url("admin/person_manag/del_person/{$val["id"]}");
              $val["desciption"]=  htmlspecialchars_decode($val["desciption"]);
                echo "
               
	<tr>
            	<td>{$val["morder"]}</td>
                    <td>{$val["name"]}</td>
                <td><img src=\"{$thum_url}/{$val["photo"]}\" width=\"120\" /></td>
                <td>{$val["sex"]}</td>
                <td>{$val["jobs"]}</td>
                <td>{$val["desciption"]}</td>

                <td> <a href=\"{$del_url}\" title=\"删除\">删除</a> | ".anchor('admin/person_manag/edit_person/'.$val["id"],'编辑','class="edit"')."</td>
            </tr>

";
            }
            ?>

        </table>
    </div>
</div>


<div class="box">
    <div class="hd">添加团队成员 &darr;</div>
    <div class="bd">
        <form action="<?php
            echo site_url("admin/person_manag/add_person");
            ?>" method="post" enctype="multipart/form-data">
            <table class="formtable">
                <tr>
                    <th>姓名</th>
                    <td><input type="text" size="30" name="name" /></td>
                </tr>
                <tr>
                    <th>性别</th>
                    <td><?php echo form_dropdown('sex', array('0' => '女士', '1' => '先生'), 1); ?></td>
                </tr>
                <tr>
                    <th>职位</th>
                    <td><input type="text" size="30" name="jobs" /></td>
                </tr>
                <tr>
                    <th>照片</th>
                    <td><input type="file" size="30" name="photo" /></td>
                </tr>
                <tr>
                    <th>简介</th>
                    <td><script type="text/javascript">
                        bkLib.onDomLoaded(function() {
                            new nicEditor({fullPanel:true,iconsPath:'<?php echo base_url("nicEdit"); ?>/nicEditorIcons.gif'}).panelInstance('desc');
                        });
                        </script>
                        <textarea rows="15" cols="90" name="desc" id="desc"></textarea></td>
                </tr>
                <tr>
                    <th>顺序</th>
                    <td><input type="text" size="5" name="order" /></td>
                </tr>
                <tr>
                    <th></th>
                    <td><input type="submit" name="add_submit" value="确定添加" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>
